<?php
/**
* @package Super header module for Joomla! 1.6
* @author http://www.joomla2you.com
* @copyright (C) 2011- joomla2you.Com
* @license PHP files are GNU/GPL
**/

defined('_JEXEC') or die('Restricted access');// no direct access
require_once (dirname(__FILE__).DS.'helper.php');
$moduleId = $module->id;
$layoutStyle = $params->get('layout_style');
$slideDelay = trim( $params->get('timming'));
$juCommon = new modJUHeadlineCommonHelper($params);
switch ($layoutStyle) {
case "ju_slide1":
$list_slidecontent = $juCommon->getSlideContent($params,$moduleId);
if(count($list_slidecontent)) {	
$height = $params->get('ju_news_height');
$showthumb = trim( $params->get('showthumb') ); //Show Image Thumbnail
$thumbsize = trim( $params->get('news_thumbsize') ); //Thumbnail Size
$timming = trim( $params->get('timming') );  //Time to rollover content
$autorun = trim( $params->get('news_autorun') ); //Autorun
if($autorun == 1) $autorun = 'true'; 
else $autorun = 'false';
require(JModuleHelper::getLayoutPath('mod_ju_supershow'));
}
break;
case "ju_slide2":
$moduleHeight = $params->get('jusupershow_height');
$autoRun = $params->get('jusupershow_autorun');		
$slides = $juCommon->getSlideContent($params,$moduleId);

if(count($slides))require(JModuleHelper::getLayoutPath('mod_ju_supershow','ju_supershow'));
break;
case "ju_slide3":
$moduleHeight = $params->get('ju_coolshow_height');
$css_width = 'width:'.$params->get('ju_coolshow_main_width').'px';
$verticalStyle = $params->get('coolshow_animation');
$css_slidebar_width = 'width:'.$params->get('ju_coolshow_slidebar_width').'px';
$css_height = 'height:'.$moduleHeight.'px';
$css_item_heigth ='height:'.$params->get('coolshow_hitem_sliderbar').'px';
$divHeadLine = "ju_vheadline".$moduleId;
$slideOuter = "#slide_outer".$moduleId." div.slide";
$slideBarItem ='#ju_pagislide'.$moduleId." ul.nav_slideitems li.nav_item";
$slide_width = $params->get('ju_coolshow_main_width');
$image_width = $params->get('coolshow_thumb_width');
$image_height = $params->get('coolshow_thumb_height');
$showButNext = $params->get('coolshow_show_next');		
$slides = $juCommon->getSlideContent($params,$moduleId);
if(count($slides)){
require(JModuleHelper::getLayoutPath('mod_ju_supershow','ju_coolshow'));
}
break;
case "ju_slide4":
$moduleWidth = ($params->get("ju_headerslider_width"));
$moduleHeight = $params->get('ju_headerslider_height');		
$showReadmore = $params->get('headerslider_readmore',1);
$showButNext = $params->get('headerslider_show_next');
$number_items_per_line = ($params->get("headerslider_no_items_per_line", "2"));
$list = $juCommon->getSlideContent($params,$moduleId); 
if(count($list)) require(JModuleHelper::getLayoutPath('mod_ju_supershow','ju_headerslider'));
break;
case "ju_slide5":
$height = $params->get('ju_showcase_height');
$isReadMore = $params->get('showcase_readmore');
$moduleWidth = $params->get('ju_showcase_width');
$moduleHeight = $params->get('ju_showcase_height');
$imgWidth = $params->get('showcase_thumb_width');
$imgHeight = $params->get('showcase_thumb_height');		
$showButNext = $params->get('showcase_show_next');
$list = $juCommon->getSlideContent($params,$moduleId);
if(count($list)) require(JModuleHelper::getLayoutPath('mod_ju_supershow','ju_showcase'));
break;
case "ju_slide6":
$moduleWidth = $params->get('ju_headerslider1_width');		
$imgSlideWidth = $params->get('headerslider1_imgslide_width');
$imgSlideHeight = $params->get('headerslider1_imgslide_height');
$showButNext = $params->get('headerslider1_show_next');
$list = $juCommon->getSlideContent($params,$moduleId);
$isReadMore = $params->get('headerslider1_readmore');
if(count($list)) require(JModuleHelper::getLayoutPath('mod_ju_supershow','ju_headerslider1'));
break;
case "ju_slide7":
$mainModWidth = $params->get('ju7_main_width');
$mainModHeight = $params->get('ju7_height');
$isReadMore = $params->get('ju7_readmore');
$showButNext = $params->get('ju7_show_next');
$juSlide7Helper = new modJUSlide7($params);		
$list = $juSlide7Helper->getSlideContent($params,$moduleId);	
if(count($list)) require(JModuleHelper::getLayoutPath('mod_ju_supershow','slideshow7'));
break;
case "ju_slide8":
$isReadMore = $params->get('slidershow_readmore');
$moduleWidth = $params->get('ju_slidershow_width');
$moduleHeight = $params->get('ju_slidershow_height');
$imgWidth = $params->get('slidershow_thumb_width');
$imgHeight = $params->get('slidershow_thumb_height');		
$showButNext = $params->get('slidershow_show_next');
$list = $juCommon->getSlideContent($params,$moduleId);
if(count($list)) require(JModuleHelper::getLayoutPath('mod_ju_supershow','ju_slidershow'));
break;	
case "ju_slide9":
$moduleHeight = $params->get('ju9_main_height');
$moduleWidth = $params->get('ju9_main_width');
$thumbWidth = $params->get('ju9_expand_width');
$thumbHeight = $params->get('ju9_main_height');
$descHeight = $params->get('ju9_height_desc',80);
$expandWidth = $params->get('ju9_expand_width',700); 
$list = $juCommon->getSlideContent($params,$moduleId);	
if(count($list)) require (JModuleHelper::getLayoutPath('mod_ju_supershow','ju_accordation'));		
break;	
}
?>